﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Less2DB
{
    public class DatabaseFieldAttribute : Attribute
    {
        private bool _isPrimaryKey;

        /// <summary>
        /// 是否为主键字段。
        /// </summary>
        public bool IsPrimaryKey
        {
            get { return _isPrimaryKey; }
            set { _isPrimaryKey = value; }
        }

        private bool _isIncrementField;

        /// <summary>
        /// 是否为自增长字段。
        /// </summary>
        public bool IsIncrementField
        {
            get { return _isIncrementField; }
            set { _isIncrementField = value; }
        }
        
    }
}
